package org.example.Server.model.paper;

import lombok.Data;
import org.example.Server.model.question.QandA;

import java.util.List;

/**
 * 试卷-题型-显示问答题
 */
@Data
public class PaperQna extends PaperFormat {
    /**
     * Integer paper_id;
     * String qs_type;//试题类型
     * Integer paper_format_id;//主键
     * String format_content;//命名
     * <p>
     * Double format_score;//该题型总分
     * Integer format_qs_cnt;//该题型总数
     */
    List<QandA> items;//题目以及标准答案
    public PaperQna(){}
    public PaperQna(PaperFormat paperFormat) {
        this.paper_id=paperFormat.getPaper_id();
        this.paper_format_id=paperFormat.getPaper_format_id();
        this.qs_type=paperFormat.getQs_type();
        this.format_content=paperFormat.getFormat_content();
        this.format_score=paperFormat.getFormat_score();
        this.format_qs_cnt=paperFormat.getFormat_qs_cnt();
    }
}
